﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DiagramDesigner.Common.Constants;
using DiagramDesigner.Module.Canvas.Views;
using Microsoft.Practices.Prism.MefExtensions.Modularity;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.ServiceLocation;

namespace DiagramDesigner.Module.Canvas
{
    [ModuleExport(typeof(CanvasModule))]
    public class CanvasModule : IModule
    {
        public void Initialize()
        {
            IRegionManager regionManager = ServiceLocator.Current.GetInstance<IRegionManager>();
            regionManager.Regions[RegionName.CanvasRegion].Add(new CanvasView());
        }
    }
}
